home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14936 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.4 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 6e 6f | 63 2e 6e 65 74 63 6f 6d |Path: no|c.netcom|
|00000010| 2e 6e 65 74 21 6e 65 77 | 73 0a 46 72 6f 6d 3a 20 |.net!new|s.From: |
|00000020| 54 61 72 61 6e 67 20 44 | 65 73 68 70 61 6e 64 65 |Tarang D|eshpande|
|00000030| 20 3c 74 61 72 61 6e 67 | 40 77 69 6c 6c 6f 77 73 | <tarang|@willows|
|00000040| 2e 63 6f 6d 3e 0a 4e 65 | 77 73 67 72 6f 75 70 73 |.com>.Ne|wsgroups|
|00000050| 3a 20 63 6f 6d 70 2e 6c | 61 6e 67 2e 63 0a 53 75 |: comp.l|ang.c.Su|
|00000060| 62 6a 65 63 74 3a 20 52 | 65 3a 20 4f 62 74 61 69 |bject: R|e: Obtai|
|00000070| 6e 69 6e 67 20 66 69 6c | 65 20 6c 69 73 74 73 20 |ning fil|e lists |
|00000080| 69 6e 20 43 3f 0a 44 61 | 74 65 3a 20 4d 6f 6e 2c |in C?.Da|te: Mon,|
|00000090| 20 31 35 20 41 70 72 20 | 31 39 39 36 20 31 32 3a | 15 Apr |1996 12:|
|000000a0| 30 38 3a 31 30 20 2d 30 | 37 30 30 0a 4f 72 67 61 |08:10 -0|700.Orga|
|000000b0| 6e 69 7a 61 74 69 6f 6e | 3a 20 4e 45 54 43 4f 4d |nization|: NETCOM|
|000000c0| 20 4e 65 74 77 6f 72 6b | 20 4f 70 65 72 61 74 69 | Network| Operati|
|000000d0| 6f 6e 73 0a 4d 65 73 73 | 61 67 65 2d 49 44 3a 20 |ons.Mess|age-ID: |
|000000e0| 3c 33 31 37 32 39 45 39 | 41 2e 44 41 36 40 77 69 |<31729E9|A.DA6@wi|
|000000f0| 6c 6c 6f 77 73 2e 63 6f | 6d 3e 0a 52 65 66 65 72 |llows.co|m>.Refer|
|00000100| 65 6e 63 65 73 3a 20 3c | 67 63 72 61 69 67 2e 31 |ences: <|gcraig.1|
|00000110| 2e 30 30 31 36 35 33 41 | 32 40 69 6e 74 65 72 61 |.001653A|2@intera|
|00000120| 63 63 65 73 73 2e 63 6f | 6d 3e 0a 4e 4e 54 50 2d |ccess.co|m>.NNTP-|
|00000130| 50 6f 73 74 69 6e 67 2d | 48 6f 73 74 3a 20 64 61 |Posting-|Host: da|
|00000140| 66 66 79 2e 77 69 6c 6c | 6f 77 73 2e 63 6f 6d 0a |ffy.will|ows.com.|
|00000150| 4d 69 6d 65 2d 56 65 72 | 73 69 6f 6e 3a 20 31 2e |Mime-Ver|sion: 1.|
|00000160| 30 0a 43 6f 6e 74 65 6e | 74 2d 54 79 70 65 3a 20 |0.Conten|t-Type: |
|00000170| 74 65 78 74 2f 70 6c 61 | 69 6e 3b 20 63 68 61 72 |text/pla|in; char|
|00000180| 73 65 74 3d 75 73 2d 61 | 73 63 69 69 0a 43 6f 6e |set=us-a|scii.Con|
|00000190| 74 65 6e 74 2d 54 72 61 | 6e 73 66 65 72 2d 45 6e |tent-Tra|nsfer-En|
|000001a0| 63 6f 64 69 6e 67 3a 20 | 37 62 69 74 0a 58 2d 4d |coding: |7bit.X-M|
|000001b0| 61 69 6c 65 72 3a 20 4d | 6f 7a 69 6c 6c 61 20 32 |ailer: M|ozilla 2|
|000001c0| 2e 30 47 6f 6c 64 42 32 | 20 28 57 69 6e 39 35 3b |.0GoldB2| (Win95;|
|000001d0| 20 49 29 0a 54 6f 3a 20 | 47 65 6f 72 67 65 20 43 | I).To: |George C|
|000001e0| 72 61 69 67 20 3c 67 63 | 72 61 69 67 40 69 6e 74 |raig <gc|raig@int|
|000001f0| 65 72 61 63 63 65 73 73 | 2e 63 6f 6d 3e 0a 0a 47 |eraccess|.com>..G|
|00000200| 65 6f 72 67 65 20 43 72 | 61 69 67 20 77 72 6f 74 |eorge Cr|aig wrot|
|00000210| 65 3a 0a 3e 20 49 2e 65 | 2c 20 49 20 77 61 6e 74 |e:.> I.e|, I want|
|00000220| 20 74 6f 20 6f 62 74 61 | 69 6e 20 61 20 6c 69 73 | to obta|in a lis|
|00000230| 74 69 6e 67 20 6f 66 20 | 74 68 65 20 66 69 6c 65 |ting of |the file|
|00000240| 73 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |s in the| current|
|00000250| 20 64 69 72 65 63 74 6f | 72 79 20 2d 20 63 6f 75 | directo|ry - cou|
|00000260| 6c 64 0a 3e 20 49 20 75 | 73 65 20 61 20 70 6f 69 |ld.> I u|se a poi|
|00000270| 6e 74 65 72 20 74 6f 20 | 61 6e 20 61 72 72 61 79 |nter to |an array|
|00000280| 20 6f 66 20 73 74 72 69 | 6e 67 73 3f 20 57 68 65 | of stri|ngs? Whe|
|00000290| 72 65 61 73 20 74 68 65 | 20 73 74 72 69 6e 67 73 |reas the| strings|
|000002a0| 20 61 72 65 20 61 63 74 | 75 61 6c 6c 79 20 74 68 | are act|ually th|
|000002b0| 65 0a 3e 20 6e 61 6d 65 | 73 20 6f 66 20 74 68 65 |e.> name|s of the|
|000002c0| 20 66 69 6c 65 73 20 69 | 6e 20 74 68 65 20 63 75 | files i|n the cu|
|000002d0| 72 72 65 6e 74 20 64 69 | 72 65 63 74 6f 72 79 2e |rrent di|rectory.|
|000002e0| 0a 3e 20 0a 3e 20 49 66 | 20 49 20 63 6f 75 6c 64 |.> .> If| I could|
|000002f0| 20 64 6f 20 74 68 61 74 | 2e 2e 2e 20 28 77 68 69 | do that|... (whi|
|00000300| 63 68 20 49 20 61 6d 20 | 61 6c 6d 6f 73 74 20 70 |ch I am |almost p|
|00000310| 6f 73 69 74 69 76 65 20 | 49 20 63 61 6e 29 20 68 |ositive |I can) h|
|00000320| 6f 77 20 77 6f 75 6c 64 | 20 49 20 6f 62 74 61 69 |ow would| I obtai|
|00000330| 6e 0a 3e 20 74 68 65 20 | 66 69 6c 65 20 6c 69 73 |n.> the |file lis|
|00000340| 74 69 6e 67 20 69 6e 74 | 6f 20 74 68 65 20 76 61 |ting int|o the va|
|00000350| 72 69 61 62 6c 65 73 2e | 20 49 20 77 61 6e 74 20 |riables.| I want |
|00000360| 74 6f 20 61 76 6f 69 64 | 20 75 73 69 6e 67 20 73 |to avoid| using s|
|00000370| 79 73 74 65 6d 28 29 20 | 61 6e 64 20 49 0a 3e 20 |ystem() |and I.> |
|00000380| 73 75 72 65 6c 79 20 64 | 6f 6e 27 74 20 77 61 6e |surely d|on't wan|
|00000390| 74 20 74 6f 20 67 6f 20 | 6c 6f 77 2d 6c 65 76 65 |t to go |low-leve|
|000003a0| 6c 20 61 6e 64 20 72 65 | 61 64 20 74 68 65 20 66 |l and re|ad the f|
|000003b0| 69 6c 65 20 73 79 73 74 | 65 6d 27 73 20 74 61 62 |ile syst|em's tab|
|000003c0| 6c 65 28 73 29 20 2d 20 | 61 6e 79 0a 3e 20 61 6e |le(s) - |any.> an|
|000003d0| 64 20 61 6c 6c 20 68 65 | 6c 70 20 77 69 6c 6c 20 |d all he|lp will |
|000003e0| 73 75 72 65 6c 79 20 62 | 65 20 61 70 70 72 65 63 |surely b|e apprec|
|000003f0| 69 61 74 65 64 20 2d 2d | 20 54 68 61 6e 6b 20 79 |iated --| Thank y|
|00000400| 6f 75 0a 0a 0a 55 6e 66 | 6f 72 74 75 6e 65 74 6c |ou...Unf|ortunetl|
|00000410| 79 20 74 68 65 72 65 20 | 64 6f 65 73 6e 27 74 20 |y there |doesn't |
|00000420| 73 65 65 6d 20 74 6f 20 | 62 65 20 61 20 67 6f 6f |seem to |be a goo|
|00000430| 64 20 63 6f 6e 73 69 73 | 74 61 6e 74 20 77 61 79 |d consis|tant way|
|00000440| 20 61 63 63 72 6f 73 73 | 20 64 69 66 66 65 72 65 | accross| differe|
|00000450| 6e 74 0a 70 6c 61 74 66 | 6f 72 6d 73 2e 20 20 48 |nt.platf|orms. H|
|00000460| 6f 77 65 76 65 72 20 65 | 61 63 68 20 70 6c 61 74 |owever e|ach plat|
|00000470| 66 6f 72 6d 20 64 6f 65 | 73 20 64 6f 20 74 68 69 |form doe|s do thi|
|00000480| 6e 67 73 20 71 75 69 74 | 65 20 73 69 6d 69 6c 61 |ngs quit|e simila|
|00000490| 72 6c 79 2e 20 20 55 6e | 64 65 72 0a 44 4f 53 20 |rly. Un|der.DOS |
|000004a0| 6f 72 20 57 69 6e 64 6f | 77 73 20 6c 6f 6f 6b 20 |or Windo|ws look |
|000004b0| 69 6e 20 74 68 65 20 66 | 69 6c 65 20 3c 64 69 72 |in the f|ile <dir|
|000004c0| 2e 68 3e 20 61 6e 64 20 | 3c 64 69 72 65 63 74 2e |.h> and |<direct.|
|000004d0| 68 3e 20 77 68 69 6c 65 | 20 75 6e 64 65 72 20 55 |h> while| under U|
|000004e0| 4e 49 58 20 28 61 74 0a | 6c 65 61 73 74 20 74 68 |NIX (at.|least th|
|000004f0| 65 20 6f 6e 65 20 49 20 | 68 61 76 65 29 20 6c 6f |e one I |have) lo|
|00000500| 6f 6b 20 69 6e 20 74 68 | 65 20 66 69 6c 65 20 3c |ok in th|e file <|
|00000510| 64 69 72 65 6e 74 2e 68 | 3e 2e 20 20 54 68 65 73 |dirent.h|>. Thes|
|00000520| 65 20 77 69 6c 6c 20 63 | 6f 6e 74 61 69 6e 20 72 |e will c|ontain r|
|00000530| 6f 75 74 69 6e 65 73 0a | 74 68 61 74 20 77 69 6c |outines.|that wil|
|00000540| 6c 20 61 6c 6c 6f 77 20 | 79 6f 75 20 74 6f 20 74 |l allow |you to t|
|00000550| 68 65 20 61 20 64 69 72 | 65 63 74 6f 72 79 20 65 |he a dir|ectory e|
|00000560| 6e 74 72 79 20 6c 69 73 | 74 2e 0a 0a 54 61 72 61 |ntry lis|t...Tara|
|00000570| 6e 67 0a | |ng. | |
+--------+-------------------------+-------------------------+--------+--------+